import { createSlice } from '@reduxjs/toolkit';


const initialState = {
    staticData: {}
}
export const homeSlice = createSlice({
    name: 'home',
    initialState,
    reducers: {
        setStaticData: (state, { payload }) => {
            state.staticData = payload
        },
    },

})

export const { setStaticData } = homeSlice.actions;
export const state = (state: { staticData: any }) => state.staticData
export default homeSlice.reducer;

